package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.Analysis;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.AnalysisItems;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.AnalysisItemsResult;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.AnalysisResult;

import java.util.List;

/**
 * Created by yangcs on 2017/6/8.
 */
public interface AnalysisService {


    int saveAnalysis(Analysis analysis);

    JSONObject list(Analysis analysis);

    int deleteById(String analysisId);

    JSONObject listData(Analysis analysis);

    int addResult(String analysisId,String itemsResult,String userId);

    AnalysisResult queryAnalysisResult(AnalysisResult analysisResult);

    List<AnalysisResult> queryAnalysisResultList(AnalysisResult analysisResult);

    List<AnalysisItemsResult> queryAnalysisItemsResult(AnalysisResult analysisResult);

    List<AnalysisItems> queryItems(AnalysisResult analysisResult);

    List<AnalysisItemsResult> queryNeeds();

    JSONObject checkListData(Analysis analysis);

    int check(String analysisId,String analysisDate,int analysisStatus,String applyUser);
}
